<?php

define('IN_PHPSCUP','1');
define('ROOT_PATH', dirname(dirname(__FILE__)));   //该常量是网站根目录
define('VIEW_TYPE_DEFAULT','default');  //使用默认模板
define('IS_PHPSCUP_ADMIN','1');  //使用默认模板


include(ROOT_PATH . '/scupcore/SCup.php');

//定义配置信息 
require(ROOT_PATH . '/data/db.config.php');
require(ROOT_PATH . '/data/config.inc.php');



unset($SCup);
$SCup     = new SCup(array(
    'SCup_name'   =>  'admin',
    'default_app'   =>  'default',
    'default_act'   =>  'index',
    'app_root'      =>  ROOT_PATH . '/admin/app',
	'view_root'      =>  ROOT_PATH . '/admin/view',
	'model_root'      =>  ROOT_PATH . '/admin/model',
	'filter_root'      =>  ROOT_PATH . '/admin/filter',
	'compiled_root'      =>  ROOT_PATH . '/temp/compiled/admin',
	'caches_root'      =>  ROOT_PATH . '/temp/caches/admin',
	'user_power_file' =>  ROOT_PATH . '/data/power/',
	'core_libs' =>  array(
        ROOT_PATH . '/scupcore/model.base.php',
        ROOT_PATH . '/scupcore/view.base.php',
        ROOT_PATH . '/scupcore/app.base.php',
        ROOT_PATH . '/scupcore/message.base.php',
        ROOT_PATH . '/scupcore/filter.base.php'
        ),
    'external_libs' =>  array(
        ROOT_PATH . '/lib/user.power.lib.php',
		ROOT_PATH . '/lib/function.lib.php',
		ROOT_PATH . '/lib/languages.lib.php',	
        )
));

$SCup->run();





?>